package com.entrogy.utils;

import java.util.HashSet;
import java.util.List;

public class StrUtils {
    public static boolean isNullOrEmpty(String str){
        return (null == str || ("").equals(str.trim()))?true:false;
    }


    /**
     *  list  去重
     * @param list
     * @return
     */
    public static List removeDuplicate(List list) {
        HashSet h = new HashSet(list);
        list.clear();
        list.addAll(h);
        return list;
    }



}
